import { baseRequest } from "@/utils/request";

const request = (url, ...arg) => baseRequest(`/api/productionEmployee/${url}`, ...arg)

export default {
    //新增
    addEmployee(data) {
        return request('AddPersonAsync', data)
    },
    //批量删除
    rangeDel(data) {
        return request('DeleteRangeAsync', data)
    },
    //修改
    updateEmployee(data) {
        return request('UpdateAsyc', data)
    },
    //查询
    queryEmployee(data) {
        return request('QueryAsync', data, 'get')
    },
    //绑定下拉框
    bindEmployee(data) {
        return request('BindEmployeeAsync', data, 'get')
    }
}